package com.atguigu.easyexcel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

public class EasyListener extends AnalysisEventListener<UserData> {
    @Override
    public void invokeHead(Map headMap, AnalysisContext context) {
        super.invokeHead(headMap, context);
        System.out.println(headMap);
    }

    //一行一行调用 从第二行开始读（因为第一行是实体类信息）
    @Override
    public void invoke(UserData userData, AnalysisContext analysisContext) {
        System.out.println(userData);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
